<?php
/*------------------------------------------------------------------------
# com_vportfolio - Vportfolio component
# ------------------------------------------------------------------------
# author    Vsmart Extensions
# copyright Copyright (C) 2010 www.vsmart-extensions.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.vsmart-extensions.com
# Technical Support:  Forum - http://www.vsmart-extensions.com
-------------------------------------------------------------------------*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );


// DEVNOTE: Pull in the class that will be used to actually display our toolbar.
require_once( JApplicationHelper::getPath( 'toolbar_html' ) );


switch ($task) 
{
	case 'add' :
	case 'edit':
	case 'editA':
	case 'apply':
		TOOLBAR_vportfolio::_EDIT();
		break;
	default:
		$controller = JRequest::getVar('controller','vportfolio');
		if($controller=="config"){
			TOOLBAR_vportfolio::_EDIT();
			break;
		}
		TOOLBAR_vportfolio::_DEFAULT();
		break;
}
?>
